This repository was archived by the owner on Jul 16, 2024. It is now read-only.
[WIP] Update simulation example pages#302
Draft
amquake wants to merge 6 commits intoPhotonVision:masterfrom
Draft
[WIP] Update simulation example pages#302amquake wants to merge 6 commits intoPhotonVision:masterfrom
amquake wants to merge 6 commits intoPhotonVision:masterfrom
Conversation
mcm001
reviewed
Jan 2, 2024
|
|
||
| The Java and C++ examples can be found inside the `photonlib-java-examples <https://github.com/PhotonVision/photonvision/tree/master/photonlib-java-examples>`_ and `photonlib-cpp-examples <https://github.com/PhotonVision/photonvision/tree/master/photonlib-cpp-examples>`_ subdirectories of the photonvision repository, respectively. | ||
|
|
||
| To run them, use the commands listed below. Photonlib must first be published to your local maven repository, then the ``copyPhotonlib`` task will copy the generated vendordep json file into each example. After that, the ``simulateJava`` (Java) or ``simulateNative`` (C++) task can be used like a normal robot project. Robot simulation with attached debugger is technically possible by using ``simulateExternalJava`` and modifying the launch script it exports, though unsupported. |
Contributor
There was a problem hiding this comment.
I would specify you should be running subprojectname:simulateJava -- otherwise it'll just spin up all the examples in random order
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates simulation example walkthrough pages for new simulation functionality. Currently only includes Java.
simaimandrangeswervedriveposeestsim